﻿using Basic.UserModel.DB;
using WeDonekRpc.SqlSugar;

namespace Basic.UserRepository.lmpl
{
    internal class ThirdAppRepository : UserBaseRepository<DBThirdApp, long>, IThirdAppRepository
    {
        public ThirdAppRepository (ISqlClientFactory factory) : base(factory)
        {
        }
        public int GetThirdId (string appId, string appType)
        {
            return base.Get(c => c.AppId == appId && c.AppType == appType, c => c.Id);
        }

    }
}
